package com.zhang.modules.dict.entity.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhang.common.jpa.entity.DTO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

/**
 * A DTO for the {@link com.zhang.modules.dict.entity.DictData} entity
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DictDataDto implements Serializable, DTO {
    private String id;
    private String createBy;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    private String cssClass;
    private Integer dictSort;
    @Size(max = 100)
    private String dictLabel;
    @Size(max = 100)
    private String dictValue;
    @Size(max = 100)
    private String dictType;
    private Character status;
    @Size(max = 500)
    private String remark;
}